/*
	Name:
	Copyright:Take it at will
	Author:Rodney
	Date: 
	Description:
*/
#include<stdio.h>
#include<stdlib.h>
int main(int argc, char *argv[])
{
	FILE *input,*output;
	char str[81];
	if(argc!=3)
	{
		puts("input error");
		exit(-1);
	}
	if((input = fopen(argv[1],"r")) == NULL)
	{
		puts("fail to open the file");
		exit(-1);
	}
	if((output = fopen(argv[2],"w")) == NULL)
	{
		puts("fail to open the file");
		exit(-1);
	}
	
	while(fgets(str,81,input) != NULL)
		fputs(str,output);
		
	fclose(input);
	fclose(output);
}

